<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
  <caption>个人信息</caption>
  <tr>
    <td>照片</td>
    <td><img id="head_img" src="head.jpg" width="50px" alt=""></td>
  </tr>
  <tr>
    <td>名字</td><td id="name_id">xxx</td>
  </tr>
  <tr>
    <td>年龄</td><td id="age_id">xxx</td>
  </tr>
  <tr>
    <td>好友</td>
    <td><ul id="friend_ul"></ul></td>
  </tr>
</table>
<input type="button" value="请求数据" onclick="f()">
<script>
function f() {
  let person = {name:"王冰冰",age:24,url:"0076LQCyly1h02m9w9rxij31ho1zk4qq.jpg",
  friend:["张扬","石原里美"]};

  head_img.src = person.url;
  name_id.innerText = person.name;
  age_id.innerText = person.age;

  for (let friendName of person.friend){
    let li = document.createElement("li");
    li.innerText = friendName;
    friend_ul.append(li);
  }
}
</script>

</body>
</html>